Improve agent discoverability and navigation UX#29
Merged
Tranquil-Flow merged 1 commit intomainfrom Apr 1, 2026
Merged
Conversation
Split "Manage Agents" nav into separate "Register" and "My Agents" links to eliminate label ambiguity. Add robots.txt, sitemap.xml, and agent-specific meta tags for crawler and agent discovery. Expand middleware content negotiation to serve llms.txt on text/plain Accept header. Add /.well-known/agent-registration redirect, /agents.json discovery endpoint, /api/health status check, and JSON 404 responses for unmatched API routes. Add bootstrap hint on homepage. Standardize CORS headers across all discovery endpoints with 24h preflight caching. Create styled 404 page with navigation and developer links. Fix pre-existing lint errors in visa page and VisaUpgradeFlow.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<link rel="agent-api">,<link rel="agent-card">,<link rel="llms-txt">) for crawler and agent discoverytext/plainAccept header/.well-known/agent-registrationredirect,/agents.jsondiscovery endpoint,/api/healthstatus check, and JSON 404 responses for unmatched API routesContext
An AI agent attempted to register at app.ai.self.xyz and produced a UX audit. The registration form and bootstrap API were rated excellent, but homepage navigation and agent discoverability had gaps. The CTA issues were already fixed in dev, but nav labeling, SEO files, discovery metadata, and error handling needed work.
Test plan
/robots.txtand/sitemap.xmlreturn valid content/agents.jsonreturns discovery JSON/api/healthreturns{"status":"ok"}/.well-known/agent-registrationredirects to/api/agent/bootstrap/api/nonexistentreturns JSON 404 with discovery links/nonexistentshows styled 404 pagecurl -H "Accept: text/plain" <url>returns llms.txt contentAccess-Control-Allow-Headers